|
SET CAMERA RANGE
This command will set the viewing range of the camera.
SET CAMERA RANGE Near Value, Far Value
SET CAMERA RANGE Camera Number, Near Value, Far Value
Camera Number
Integer
The camera number
Near Value
Float
The front value specifies the closest point beyond which the camera starts to draw the 3D scene
Far Value
Float
The back value specifies the furthest point beyond which the camera stops drawing the 3D scene
This command does not return a value.
The Front Value specifies the closest point beyond which the camera starts to draw the 3D scene. The Back Value specifies the furthest point beyond which the camera stops drawing the 3D scene. The parameters must be specified using real numbers greater than zero. The default range starts drawing the 3D scene with a front value of 1 and a back value of 3000.
autocam on:backdrop on
make matrix 1,4000,4000,100,100
set matrix height 1,50,50,500
update matrix 1
make camera 1
position camera 1,0,500,500
point camera 1,2000,0,2000
range=1000
while mouseclick()<>1
set cursor 0,0
print "s-x viewing range of the camera ",range
if inkey$()="s" then range=range-1:if range<0 then range=0
if inkey$()="x" then range=range+1
set camera range 1,1,range
endwhile
while mouseclick()=1 : endwhile
delete matrix 1:autocam off:backdrop off
end
CAMERA Commands Menu
Index
|